package features.advance.jdk.thread.transaction;

import javax.sql.DataSource;
import java.util.Random;

/**
 * @author LIN
 * @date 2023-02-12 23:37
 */
public class TransactionMain {

    public static void main(String[] args) {

    }

    static class TestCase {
        public static void test(){
        //https://blog.csdn.net/m0_53157173/article/details/127435336
        }
        private static void update(DataSource dataSource) throws Exception {
//            JdbcTemplate jt = new JdbcTemplate();
//            jt.setDataSource(dataSource);
//            jt.update("UPDATE Department SET Dname=\"大忽悠\" WHERE id=6");
//            throw new Exception("我是来捣乱的");
        }
    }
}
